package com.atguigu.gmall.order.biz.service;

import com.atguigu.gmall.model.mq.SeckillOrderMsg;
import com.atguigu.gmall.model.order.OrderInfo;

public interface OrderSeckillService {

    /**
     * 根据MQ中的消息准备秒杀单数据
     * @param msg
     */
    void prepareSeckillOrder(SeckillOrderMsg msg);


    /**
     * 防止横向越权
     * @param code
     * @param skuId
     * @return
     */
    OrderInfo getSeckillOrder(String code, Long skuId);
}
